import { DataType } from '../type';
import imgs from './imgs';

export const ROLE_MAP = {
  Man: 1,
  Women: 2,
};

// 素材
export const PERSON_LIST = [
  {
    name: '女',
    dataType: DataType.ROLE,
    dataId: ROLE_MAP.Women,
    width: 0,
    height: 0,
    belong: [],
    thumbnail: imgs.默认女,
    textureUrl: imgs.默认女,
  },
  {
    name: '男',
    dataType: DataType.ROLE,
    dataId: ROLE_MAP.Man,
    width: 0,
    height: 0,
    belong: [],
    thumbnail: imgs.默认男,
    textureUrl: imgs.默认男,
  },
];

export const HAIR_LIST = [
  {
    name: '爆炸头',
    dataType: DataType.HAIR,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.爆炸头,
    textureUrl: imgs.爆炸头,
  },
  {
    name: '有点秃',
    dataType: DataType.HAIR,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.有点秃,
    textureUrl: imgs.有点秃,
  },
  {
    name: '精神小伙',
    dataType: DataType.HAIR,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.精神小伙,
    textureUrl: imgs.精神小伙,
  },
  {
    name: '温柔卷发',
    dataType: 'hair',
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Women],
    thumbnail: imgs.长发,
    textureUrl: imgs.长发,
  },
];

export const FACE_LIST = [
  {
    name: '嗯',
    dataType: DataType.FACE,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.嗯,
    textureUrl: imgs.嗯,
  },
  {
    name: '呵呵',
    dataType: DataType.FACE,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.呵呵,
    textureUrl: imgs.呵呵,
  },
  {
    name: '无语',
    dataType: DataType.FACE,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.无语,
    textureUrl: imgs.无语,
  },
];

export const SHIRT_LIST = [
  {
    name: '基础上衣',
    dataType: DataType.JACKET,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.女孩上衣,
    textureUrl: imgs.女孩上衣,
  },
  {
    name: '运动外套',
    dataType: DataType.JACKET,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.运动外套min,
    textureUrl: imgs.运动外套,
  },
  {
    name: '黑色卫衣',
    dataType: DataType.JACKET,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.黑色卫衣min,
    textureUrl: imgs.黑色卫衣,
  },
  {
    name: '牛仔外套',
    dataType: DataType.JACKET,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.牛仔外套min,
    textureUrl: imgs.牛仔外套,
  },
];

export const TROUSER_LIST = [
  {
    name: '基础裤子',
    dataType: DataType.TROUSERS,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.基础裤子min,
    textureUrl: imgs.基础裤子,
  },

  {
    name: '帅气短裤',
    dataType: DataType.TROUSERS,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Women],
    thumbnail: imgs.帅气短裤min,
    textureUrl: imgs.帅气短裤,
  },
  {
    name: '职业半裙',
    dataType: DataType.TROUSERS,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Women],
    thumbnail: imgs.职业半裙min,
    textureUrl: imgs.职业半裙,
  },
  {
    name: '黄色长裤',
    dataType: DataType.TROUSERS,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.黄色长裤min,
    textureUrl: imgs.黄色长裤,
  },
];

export const SCEEN_LIST = [
  {
    name: '网吧',
    dataType: DataType.SCENE,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [],
    thumbnail: imgs.网吧min,
    textureUrl: imgs.网吧,
  },
  {
    name: '小卖部',
    dataType: DataType.SCENE,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [],
    thumbnail: imgs.小卖部min,
    textureUrl: imgs.小卖部,
  },
];

export const ACCESSORY_LIST = [
  {
    name: '无',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [],
    thumbnail: imgs.无,
    textureUrl: imgs.无min,
  },
  {
    name: '络腮胡',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.络腮胡min,
    textureUrl: imgs.络腮胡,
  },
  {
    name: '发带',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man],
    thumbnail: imgs.发带min,
    textureUrl: imgs.发带,
  },
  {
    name: '耳机',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.耳机min,
    textureUrl: imgs.耳机,
  },
  {
    name: '圆眼镜',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.圆眼镜min,
    textureUrl: imgs.圆眼镜,
  },
  {
    name: '口罩',
    dataType: DataType.ACCESSORIES,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.口罩min,
    textureUrl: imgs.口罩,
  },
];

export const PROPS_MATERIEL_LIST = [
  {
    name: '游戏机',
    dataType: DataType.PROP,
    dataId: 0,
    width: 0,
    height: 0,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.游戏机min,
    textureUrl: imgs.游戏机,
  },
  {
    name: '气球',
    dataType: DataType.PROP,
    dataId: 0,
    width: 150,
    height: 228,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.气球min,
    textureUrl: imgs.气球,
  },
  {
    name: '纸飞机',
    dataType: DataType.PROP,
    dataId: 0,
    width: 150,
    height: 84,
    belong: [ROLE_MAP.Man, ROLE_MAP.Women],
    thumbnail: imgs.纸飞机min,
    textureUrl: imgs.纸飞机,
  },
];

// 人物默认装扮
export const ROLE_BASE_INFO = [
  {
    role_type: ROLE_MAP.Women,
    name: '女',
    materialList: [
      {
        x: 93,
        y: 47,
        width: 65,
        height: 65,
        defaultName: '呵呵',
        type: DataType.FACE,
      },
      {
        x: 50,
        y: 6,
        width: 150,
        height: 150,
        defaultName: '温柔卷发',
        type: DataType.HAIR,
      },
      {
        x: 0,
        y: 96,
        width: 251,
        height: 255,
        defaultName: '基础上衣',
        type: DataType.JACKET,
      },
      {
        x: 0,
        y: 175,
        width: 250,
        height: 175,
        defaultName: '基础裤子',
        type: DataType.TROUSERS,
      },
      {
        x: 50,
        y: 5,
        width: 150,
        height: 150,
        defaultName: '',
        type: DataType.ACCESSORIES,
      },
    ],
  },

  {
    role_type: ROLE_MAP.Man,
    name: '男',
    materialList: [
      {
        x: 93,
        y: 47,
        width: 65,
        height: 65,
        defaultName: '呵呵',
        type: DataType.FACE,
      },
      {
        x: 50,
        y: 6,
        width: 150,
        height: 150,
        name: '精神小伙',
        type: DataType.HAIR,
      },
      {
        x: 0,
        y: 96,
        width: 251,
        height: 255,
        defaultName: '基础上衣',
        type: DataType.JACKET,
      },
      {
        x: 0,
        y: 175,
        width: 250,
        height: 175,
        defaultName: '基础裤子',
        type: DataType.TROUSERS,
      },
      {
        x: 50,
        y: 5,
        width: 150,
        height: 150,
        defaultName: '',
        type: DataType.ACCESSORIES,
      },
    ],
  },
];

// tab
